<div class="span9">
	<div class="row">
		<!-- widget area, which ones? -->
		<div class="span3">
			<div class="row">
				<?php 
				foreach($widgets as $w) {
					print $w;
				}
			?>
			</div>
		</div>
		<div class="span6">
			<h4 class="title">Ändra mina uppgifter</h4>
			<div class="box">
				<?php
				$form_items = array(
				$fname = array(
					'label' => 'Förnamn',
					'name'	=> 'fnamn',
					'id'	=> 'fnamn',
					'value' => $profile->fnamn,
					'maxlength'	=> 20
				),
				$lname = array(
					'label' => 'Efternamn',
					'name'	=> 'enamn',
					'id'	=> 'enamn',
					'value'	=> $profile->enamn,
					'maxlength'	=> 40
				),
				$telefon = array(
					'label' => 'Telefon',
					'name'	=> 'telefon',
					'id'	=> 'telefon',
					'value'	=> $profile->telefon,
					'maxlength'	=> 15
				),
				$gadress = array(
					'label' => 'Gatuadress',
					'name'	=> 'gadress',
					'id'	=> 'gadress',
					'value'	=> $profile->gadress,
					'maxlength'	=> 30
				),
				$postnr = array(
					'label' => 'Postnummer',
					'name'	=> 'postnr',
					'id'	=> 'postnr',
					'value'	=> $profile->postnr,
					'maxlength'	=> 10
				),
				$postort = array(
					'label' => 'Postort',
					'name'	=> 'postort',
					'id'	=> 'postort',
					'value'	=> $profile->postort,
					'maxlength'	=> 25
				)
				);
				?>
				<?php echo form_open($this->uri->uri_string()); ?>
				<table>
					<?php foreach($form_items as $fi) : ?>
					<tr>
						<td><?php echo form_label($fi['label'], $fi['id']); ?></td>
						<td><?php echo form_input($fi, set_value($fi['id'])); ?></td>
						<td style="color: red;"><?php echo form_error($fi['name']); ?><?php echo isset($errors[$fi['name']])?$errors[$fi['name']]:''; ?></td>
					</tr>
				<?php endforeach; ?>
				</table>
				<?php echo form_submit('updateprofile', 'Spara ändringar'); ?>
				<?php echo form_close(); ?>
			</div>
		</div>
	</div>
</div>